import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '轮次',
    align: "center",
    dataIndex: 'testRoundId_dictText'
  },
  {
    title: '案例导入',
    align: "center",
    dataIndex: 'testCaseFile',
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '案例导入',
    field: 'testCaseFile',
    component: 'JUpload',
    componentProps:{
     },
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];

// 高级查询数据
export const superQuerySchema = {
  testRoundId: {title: '轮次',order: 0,view: 'list', type: 'string',dictTable: "tm_test_round", dictCode: 'id', dictText: 'test_round_name',},
  testCaseFile: {title: '案例导入',order: 1,view: 'file', type: 'string',},
};
